package com.cody.service;

import com.cody.entity.Answer;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Cody
 * @date 2021/4/9 - 15:35
 */
public interface AnswerService {
    List<Answer> queryAllAnswer();

    List<Answer> queryAllAnswerByAnswerRespondId(String answerRespondId);

    List<Answer> queryAnswerByKeyword(String Keyword);

    Answer queryAllAnswerByAnswerId(Integer answerId);

    List<Answer> queryAllAnswerByQuestionId(Integer questionId);

    boolean updAnswerInfo(Answer answer);

    boolean insertAnswer(Answer answer);

    boolean delAnswerByAnswerId(Integer answerId);
}
